import Vue from 'vue'
import VueRouter from 'vue-router'
import Do from '../views/Do.vue'
import Undo from '../views/Undo.vue'

Vue.use(VueRouter)

const routes = [{
        path: '/do',
        name: 'Do',
        component: Do
    },
    {
        path: '/undo',
        name: 'Undo',
        component: Undo
    }
]

const router = new VueRouter({
    //mode: 'history',
    routes
})

export default router